package com.dream.xiaobo.dao;

import com.dream.xiaobo.entity.Address;

import java.sql.SQLException;
import java.util.List;

/**
 * @author xiaobo
 * @date 2021/9/2 - 8:09
 */
public interface AddressDao {

    //根据用户Id查询用户地址信息接口
    List<Address> selectAddressByUId(Integer uId) throws SQLException;

    //插入地址信息接口
    void insertAddress(Address address) throws SQLException;

    //根据地址Id删除地址信息接口
    void deleteAddressByAId(String aId) throws SQLException;

    //根据地址Id更新地址信息接口
    void updateAddressToByAId(String aId) throws SQLException;

    //根据地址Id更新地址信息接口
    void updateAddressNOTByAId(String aId) throws SQLException;

    //更新地址信息接口
    void updateAddress(Address address) throws SQLException;
}
